﻿   @model AppNet.Models.News
   @{SelectList roots = (SelectList)ViewBag.roots; }
   <style>
       .editor-label
       {
           font-size:medium;
           font-weight:bold;
       }
   </style>
   <div class="editor-label">
        @AppNet.MultiLanguage.Translation.GetInstance.Translate("Category")
        </div>
    <div class="editor-field">
           @Html.DropDownList("cat", roots)
        </div>
   <div class="editor-label">
        @AppNet.MultiLanguage.Translation.GetInstance.Translate("Title")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
          @AppNet.MultiLanguage.Translation.GetInstance.Translate("Description")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
             @AppNet.MultiLanguage.Translation.GetInstance.Translate("Content")
        </div>
     
<div class ="editor-field">
@Html.TextAreaFor(model =>model.Content)
@Html.ValidationMessageFor(model=>model.Content)
</div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Tags)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tags)
            @Html.ValidationMessageFor(model => model.Tags)
        </div>
        <div class="editor-label">
           @AppNet.MultiLanguage.Translation.GetInstance.Translate("Img")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StringImg)
            @Html.ValidationMessageFor(model => model.StringImg)
        </div>
           <div class="editor-label">
          @AppNet.MultiLanguage.Translation.GetInstance.Translate("CatVisible")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsVisible)
            @Html.ValidationMessageFor(model => model.IsVisible)
        </div>

@section Scripts {
<script type="text/javascript" >
    $(document).ready(function () {
        $('#Content').ckeditor();
    });
</script>
    @Scripts.Render("~/bundles/jqueryval")
}
